﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using OOS.Application.Dish.Dtos;
using OOS.Core.Dish;
using OOS.Core.RelyOn;

namespace OOS.Application.Dish.Services.Interfaces
{
    /// <summary>
    /// 菜品管理
    /// </summary>
    public interface IDishBasicService
    {
        /// <summary>
        /// 新增菜品
        /// </summary>
        /// <param name="dishBasic"></param>
        /// <returns></returns>
        Boolean InsertDishBasic(DishBasic dishBasic);

        /// <summary>
        /// 根据id获取菜品详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        DishBasicDto SelectDishById(int id);

        /// <summary>
        /// 根据条件(菜品名称模糊查询，菜品状态精确查询，菜品分类精确查询)查询菜品列表
        /// </summary>
        /// <param name="dishBasic"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        PageResponseDto<List<DishBasicDto>> SelectPageByConditions(DishBasic dishBasic,int pageIndex,int pageSize);

        /// <summary>
        /// 根据id修改菜品信息
        /// </summary>
        /// <param name="dishBasic"></param>
        /// <returns></returns>
        Boolean UpdateDishBasicById(DishBasic dishBasic);

        /// <summary>
        /// 根据id删除菜品
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Boolean DeleteDishBasicById(int id);

        /// <summary>
        /// 根据id修改菜品状态
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Boolean UpdateStatusById(int id);

        /// <summary>
        /// 批量修改菜品状态
        /// </summary>
        /// <param name="dishSelection"></param>
        /// <param name="type"></param>
        /// <returns></returns>
        Boolean UpdateStatusByIds(int[] dishSelection, int type);

        /// <summary>
        /// 批量删除菜品
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Boolean DeleteDishBasicByIds(int[] ids);

        /// <summary>
        /// 获取不同分类下菜品数据
        /// </summary>
        /// <returns></returns>
        List<DishByCategory> SelectDishListByCategory();
    }
}
